-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new Federation and the complete process until it is confirmed and activated #2925
Create new Federation and the complete process until it is confirmed and activated #2925
Conversation
…mitProposedFederation
…s named FederationChangeIT.java
…ed until activation phase
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
case P2SH_ERP -> { | ||
originalFederation = FederationFactory.buildP2shErpFederation( | ||
originalFederationArgs, erpPubKeys, activationDelay); | ||
// TODO: CHECK REDEEMSCRIPT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this TODO
be here still?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed, thanks
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
1ba5cc7
to
1191212
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work
…hase of a federation change
…teps needed given all the activations
… agaisnt current block number to check migration has not started
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/peg/federation/FederationSupportImpl.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
baf74f1
to
89d811f
Compare
89d811f
to
dcadcb4
Compare
22efa4a
to
dc6fb3f
Compare
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/peg/federation/FederationChangeIT.java
Outdated
Show resolved
Hide resolved
newFederation.getAddress(), originalFederation.getAddress()); | ||
assertMigrationHasStarted(); | ||
verifySigHashes(); | ||
verifyPegoutTransactionCreatedEventWasEmitted(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are other events that should be emitted as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added the verification for verifyReleaseBtcRequestedEventEventWasEmitted
. Let me know if that is good. Or you were thinking on something else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
release_requested, pegout_confirmed, pegout_transaction_created , addSignature (per signature of the migration transaction), release_btc
I think those are the events emitted for a migration transaction. Check with @jeremy-then if there is any docs that describe the complete process. I might be missing some
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to include pegout_confirmed event as well. I checked that the addSignature and release_btc events are not being emmitted because the ending migration transaction is never being signed. I also checked on how it was being done here and it is also not adding signatures to the ending migration tx. Should we include this logic here as well?
Let me check with @jeremy-then for any missing events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, sounds good. We can look into adding more validations in later stages. Thanks
…new member as well include more asserts
…ederation as well remove all activation checks
24155fa
to
f0224a8
Compare
Quality Gate passedIssues Measures |
e17fddb
into
federation_change_federeration_integration
Description
The idea is to provide building blocks that can be reused while creating new tests. This focuses on creating a new active and retiring federation.